<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h2 {
            position: relative;
            width: 200px;
        }

        h2::after {
            content: '';
            width: 110px;
            height: 2px;
            background-color: red;
            position: absolute;
            bottom: 0;
            left: 13px;
        }

        h2::before {
            content: '';
            width: 2px;
            height: 20px;
            position: absolute;
            bottom: 5px;
            left: -2px;
            background-color: red;
        }
    </style>
</head>

<body>
    <h2>Hello world</h2>
</body>

</html>